package cn.sczc.jh.client.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.alibaba.fastjson.JSONObject;

/**
 * 采集服务相关接口
 * @author wz
 *
 */
@FeignClient(url = "${jh.collection.url}",name="collection")
public interface ICollectServiceAPIFeign {
	@PostMapping("open")
	public ResponseEntity<?> openSerialPort(@RequestBody JSONObject jsonParam);

	/**
	 * 关闭窗口
	 * @param jsonParam
	 * @return
	 */
	@PostMapping("close")
	public ResponseEntity<?> closeSerialPort();
	/**
	 * 获取系统串口列表
	 * @return
	 */
	@GetMapping("port")
	public ResponseEntity<?> GetSystemSerialPortList();
}
